import React,{memo} from 'react'


function SzItemLst(props, ref){

  const onClick = (index)=>{
    props.onMeun(index,props.props);
  }

  return <>
    <div onClick={()=>onClick(props.props.index)}  className={`sz-list-item ${props.meunIndex === props.props.index?'sz-list-item-a':'' }`}>
      <i className={ `iconfont ${props.props.icon}`}></i>
      <span>{props.props.name}</span>
    </div>
  </>
}
export default memo(SzItemLst);
